﻿using System.ComponentModel.DataAnnotations.Schema;

namespace Stu_sys.Entity
{
    public class Grade
    {
        //年级id
        public int GradeId { get; set; }
        //年级名称
        public string? GradeName { get; set;}
        //创建人id
        public int UserId { get; set; }
        public User? User { get; set; }
        //创建时间
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime CreateTime { get; set; }
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime UpdateTime { get; set; }
    }
}
